package com.zjff.myshop.admin.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class HomeVO {
    @ApiModelProperty(value = "Id", position = 1, required = true)
    private Integer id;

    @ApiModelProperty(value = "类别Id(1轮播/2为你推荐/3新品上线/4热销商品)", position = 2, required = true)
    private Integer typeId;

    @ApiModelProperty(value = "轮播图", position = 3)
    private String img;

    @ApiModelProperty(value = "商品Id(轮播图点击显示的商品)", position = 3, required = true)
    private Integer goodsId;

    @ApiModelProperty(value = "排序", position = 3, required = true)
    private Integer sort;

    @ApiModelProperty(value = "创建时间", position = 90)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更改时间", position = 910)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "备注", position = 100)
    private String remark;
}